# Update an input type

Updates an existing input type.

Endpoint: PATCH /v1/type-groups/{typeGroupUuid}/input-types/{inputTypeUuid}
Version: 1.1.0
Security: Bearer

## Path parameters:

  - `typeGroupUuid` (string, required)
    The unique identifier of the type group.

  - `inputTypeUuid` (string, required)
    The unique identifier of the input type to update.

## Request fields (application/json):

  - `code` (string,null)
    Updated code for the input type.

  - `displayName` (string,null)
    Updated display name for the input type.

  - `description` (string,null)
    Updated description for the input type.

  - `minLength` (integer,null)
    Updated minimum length for text values.

  - `maxLength` (integer,null)
    Updated maximum length for text values.

  - `minValue` (number,null)
    Updated minimum value for numeric types.

  - `maxValue` (number,null)
    Updated maximum value for numeric types.

  - `precision` (integer,null)
    Updated decimal precision for decimal types.

  - `pattern` (string,null)
    Updated regex pattern for text validation.

## Response 200 fields (application/json):

  - `uuid` (string, required)
    Unique identifier for this input type.

  - `typeGroupUuid` (string, required)
    Identifier of the parent type group.

  - `createdAt` (string, required)
    Timestamp when this input type was created.
    Example: "2025-11-23T14:15:22.123456Z"

  - `updatedAt` (string, required)
    Timestamp when this input type was last modified.
    Example: "2025-11-23T14:15:22.123456Z"

  - `removedAt` (string,null)
    Timestamp when this input type was removed. Null if not removed.
    Example: "2025-11-23T14:15:22.123456Z"

  - `status` (string, required)
    Lifecycle status of an input type.
    Enum: "draft", "active", "inactive", "removed"

  - `code` (string, required)
    Unique code for this input type.

  - `displayName` (string, required)
    Human-readable name for this input type.

  - `description` (string,null)
    Optional description of this input type.

  - `dataType` (string, required)
    Data type that defines the kind of value an input type accepts.
    Enum: "text", "textArea", "richText", "integer", "decimal", "boolean", "date", "dateTime", "url"

  - `isLocalizable` (boolean, required)
    Whether values can be localized per locale.

  - `isUnique` (boolean, required)
    Whether values must be unique across all products.

  - `minLength` (integer,null)
    Minimum length for text values.

  - `maxLength` (integer,null)
    Maximum length for text values.

  - `minValue` (number,null)
    Minimum value for numeric types.

  - `maxValue` (number,null)
    Maximum value for numeric types.

  - `precision` (integer,null)
    Decimal precision for decimal types.

  - `pattern` (string,null)
    Regex pattern for text validation.

## Response 401 fields (application/problem+json):

  - `type` (string,null)

  - `title` (string,null)

  - `status` (integer,null)

  - `detail` (string,null)

  - `instance` (string,null)

## Response 403 fields (application/problem+json):

  - `type` (string,null)

  - `title` (string,null)

  - `status` (integer,null)

  - `detail` (string,null)

  - `instance` (string,null)

  - `correlationId` (string,null)

## Response 404 fields (application/problem+json):

  - `type` (string,null)

  - `title` (string,null)

  - `status` (integer,null)

  - `detail` (string,null)

  - `instance` (string,null)

  - `correlationId` (string,null)

## Response 409 fields (application/problem+json):

  - `type` (string,null)

  - `title` (string,null)

  - `status` (integer,null)

  - `detail` (string,null)

  - `instance` (string,null)

  - `correlationId` (string,null)

## Response 422 fields (application/problem+json):

  - `errors` (array)

  - `errors.code` (string, required)

  - `errors.message` (string, required)

  - `type` (string,null)

  - `title` (string,null)

  - `status` (integer,null)

  - `detail` (string,null)

  - `instance` (string,null)

  - `correlationId` (string,null)

## Response 500 fields (application/problem+json):

  - `type` (string,null)

  - `title` (string,null)

  - `status` (integer,null)

  - `detail` (string,null)

  - `instance` (string,null)

  - `correlationId` (string,null)


